﻿// -----------------------------------------------------------------------
// <copyright file="IGenericRepository.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace DAL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Linq.Expressions;
    using System.Data.Objects;

    public interface IGenericRepository<C, T>
        where T : class
        where C : ObjectContext, new()
    {
        IEnumerable<T> Find(Expression<Func<T, bool>> where);
        C Context { get; }
    }
}
